import request from '@/utils/request'

const systemApi = {
  FinanceStatistics: '/admin/statistics/finance', // 平台统计
  MSGStatistics: '/admin/statistics/msg', // 财务统计
  UpToken: '/web/qn/upToken',

  SettingGet: '/web/setting/get',


  SettingApiGet:'/web/userApi/get',
  SettingApiRefresh:'/web/userApi/refresh',
  SettingApiUpdate:'/web/userApi/update',
  
}

export function getFinanceStatistics(parameter) {
  return request({
    url: systemApi.FinanceStatistics,
    method: 'post',
    data: parameter,
  })
}

export function getMSGStatistics(parameter) {
  return request({
    url: systemApi.MSGStatistics,
    method: 'post',
    data: parameter,
  })
}

export function upToken(parameter) {
  return request({
    url: systemApi.UpToken,
    method: 'post',
    data: parameter,
  })
}

export function settingGet(parameter) {
  return request({
    url: systemApi.SettingGet,
    method: 'post',
    data: parameter,
  })
}

export function settingApiGet(parameter) {
  return request({
    url: systemApi.SettingApiGet,
    method: 'post',
    data: parameter,
  })
}
export function settingApiRefresh(parameter) {
  return request({
    url: systemApi.SettingApiRefresh,
    method: 'post',
    data: parameter,
  })
}
export function settingApiUpdate(parameter) {
  return request({
    url: systemApi.SettingApiUpdate,
    method: 'post',
    data: parameter,
  })
}

